package com.dubito.pattern.创建型模式.生成器模式OR建造者模式.计算机生产;

/**
 * @author liliang
 * @date 2020/8/26.
 */
public class T410Builder implements ComputerBuilder {

    private T410 computer = new T410();

    @Override
    public void buildCup() {
        computer.setCpu("i5-450");
    }

    @Override
    public void buildRam() {
        computer.setRam("4G 1333MHZ");
    }

    @Override
    public void buildHardDisk() {
        computer.setHardDisk("500GB 7200转");
    }

    @Override
    public void buildGraphicCard() {
        computer.setGraphicCard("Nvidia NVS3100M");
    }

    @Override
    public void buildMonitor() {
        computer.setMonitor("14英寸 1280 * 800");
    }

    @Override
    public void buildOs() {
        computer.setOs("Windows7 旗舰版");
    }

    @Override
    public Computer getResult() {
        return computer;
    }
}
